﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class ShopNpc : NPC
    {
        private string shopinfo;
        public string item;

        public string Item { get; set; }
        public string Shopinfo
        {
            get { return this.shopinfo = Shopinfo; }
            set { this.shopinfo = value; }
        }


        public ShopNpc(string name, NPCType type, string item) : base(name, type)
        {
            this.item = item;
        }
        public override void Speak()
        {
            Console.WriteLine("NPC：{0}，我这里有{1}商品，你要吗？", base.Name, this.item);
        }

    }
}
